package com.twu.biblioteca.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by madhu on 27/4/14.
 */
public class Library {

    List<Item> books;
    List<Item> movies;

    public Library() {
        books = new ArrayList<Item>();
        movies = new ArrayList<Item>();
        setup();
    }

    /* Initializes the books and movies that are part of the library */
    /* This method is temporary and will be removed when items addition and deletion logic is embedded in the library */
    private void setup() {

        books.add(new Book("Five Point Someone",true));
        books.add(new Book("One Night at the Call Center",true));
        books.add(new Book("Three Mistakes of My Life",true));
        books.add(new Book("Two States",false));
        books.add(new Book("Revolution 2020",true));

        movies.add(new Movie("The Philosopher's Stone",2001,"Chris Columbus",null,true));
        movies.add(new Movie("The Chamber of Secrets",2002,"Chris Columbus",4,true));
        movies.add(new Movie("The Prisoner of Azkaban",2004,"Alfonso Cuaron",6,false));
        movies.add(new Movie("The Goblet of Fire",2005,"Mike Newell",8,true));

    }

    public List<Item> getBooks() {
        return books;
    }

    public List<Item> getMovies() { return movies; }

}
